home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Xt / XtGetApplicationResources.z / XtGetApplicationResources
Encoding:
Text File  |  1998-10-30  |  4.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXttttGGGGeeeettttAAAApppppppplllliiiiccccaaaattttiiiioooonnnnRRRReeeessssoooouuuurrrrcccceeeessss((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXttttGGGGeeeettttAAAApppppppplllliiiiccccaaaattttiiiioooonnnnRRRReeeessssoooouuuurrrrcccceeeessss((((3333XXXXtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XtGetApplicationResources, XtVaGetApplicationResources -
  10.           obtain application resources
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           void XtGetApplicationResources(_w, _b_a_s_e, _r_e_s_o_u_r_c_e_s,
  14.           _n_u_m__r_e_s_o_u_r_c_e_s, _a_r_g_s, _n_u_m__a_r_g_s)
  15.                 Widget _w;
  16.                 XtPointer _b_a_s_e;
  17.                 XtResourceList _r_e_s_o_u_r_c_e_s;
  18.                 Cardinal _n_u_m__r_e_s_o_u_r_c_e_s;
  19.                 ArgList _a_r_g_s;
  20.                 Cardinal _n_u_m__a_r_g_s;
  21.  
  22.           void XtVaGetApplicationResources(_w, _b_a_s_e, _r_e_s_o_u_r_c_e_s,
  23.           _n_u_m__r_e_s_o_u_r_c_e_s,...)
  24.                 Widget _w;
  25.                 XtPointer _b_a_s_e;
  26.                 XtResourceList _r_e_s_o_u_r_c_e_s;
  27.                 Cardinal _n_u_m__r_e_s_o_u_r_c_e_s;
  28.  
  29.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  30.           _a_r_g_s      Specifies the argument list to override resources
  31.                     obtained from the resource database.
  32.  
  33.           _b_a_s_e      Specifies the base address of the subpart data
  34.                     structure where the resources should be written.
  35.  
  36.           _n_u_m__a_r_g_s  Specifies the number of arguments in the argument
  37.                     list.
  38.  
  39.           _n_u_m__r_e_s_o_u_r_c_e_s
  40.                     Specifies the number of resources in the resource
  41.                     list.
  42.  
  43.           _r_e_s_o_u_r_c_e_s Specifies the resource list for the subpart.
  44.  
  45.           _w         Specifies the widget that wants resources for a
  46.                     subpart or that identifies the resource database
  47.                     to search.
  48.  
  49.           ...       Specifies the variable arguments to override
  50.                     resources obtained from the resource database.
  51.  
  52.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  53.           The _X_t_G_e_t_A_p_p_l_i_c_a_t_i_o_n_R_e_s_o_u_r_c_e_s function first uses the passed
  54.           widget, which is usually an application shell, to construct
  55.           a resource name and class list, Then, it retrieves the
  56.           resources from the argument list, the resource database, or
  57.           the resource list default values.  After adding base to each
  58.           address, _X_t_G_e_t_A_p_p_l_i_c_a_t_i_o_n_R_e_s_o_u_r_c_e_s copies the resources into
  59.           the address given in the resource list.  If args is NULL,
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXttttGGGGeeeettttAAAApppppppplllliiiiccccaaaattttiiiioooonnnnRRRReeeessssoooouuuurrrrcccceeeessss((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXttttGGGGeeeettttAAAApppppppplllliiiiccccaaaattttiiiioooonnnnRRRReeeessssoooouuuurrrrcccceeeessss((((3333XXXXtttt))))
  71.  
  72.  
  73.  
  74.           num_args must be zero.  However, if num_args is zero, the
  75.           argument list is not referenced.  The portable way to
  76.           specify application resources is to declare them as members
  77.           of a structure and pass the address of the structure as the
  78.           base argument.
  79.  
  80.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  81.           _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  82.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.